<?php

?>
<!--sidebar start-->
<aside>
    <div id="sidebar" class="nav-collapse ">
        <!-- sidebar menu start-->
        <ul class="sidebar-menu" id="nav-accordion">
            <?php 
            if( !Yii::app()->user->isGuest) { 
            if(Yii::app()->user->admin){ ?>
                <li class="sub-menu">
                    <!-- 一级栏目展示-->
                        <a href="<?php echo $this->createUrl("admin/admin"); ?>"
                           class="" onclick="javasctipt:$.loading.show();">
                            <i class="icon-group"></i>
                            <span>管理员</span>
                        </a>
                </li>
                <li class="sub-menu">
                    <!-- 一级栏目展示-->
                        <a href="<?php echo $this->createUrl("user/admin"); ?>"
                           class="" onclick="javasctipt:$.loading.show();">
                            <i class="icon-user"></i>
                            <span>专家管理</span>
                        </a>
                </li>
                <li class="sub-menu">
                    <!-- 一级栏目展示-->
                        <a href="<?php echo $this->createUrl("user/admin",array("author"=>0)); ?>"
                           class="" onclick="javasctipt:$.loading.show();">
                            <i class="icon-user"></i>
                            <span>用户管理</span>
                        </a>
                </li>
                <li class="sub-menu">
                    <!-- 一级栏目展示-->
                        <a href="<?php echo $this->createUrl("league/admin"); ?>"
                           class="" onclick="javasctipt:$.loading.show();">
                            <i class="icon-building"></i>
                            <span>联赛杯赛</span>
                        </a>
                </li>
                <li class="sub-menu">
                    <!-- 一级栏目展示-->
                        <a href="<?php echo $this->createUrl("team/admin"); ?>"
                           class="" onclick="javasctipt:$.loading.show();">
                            <i class="icon-building"></i>
                            <span>球队管理</span>
                        </a>
                </li>
                <li class="sub-menu">
                    <!-- 一级栏目展示-->
                        <a href="<?php echo $this->createUrl("media/admin"); ?>"
                           class="" onclick="javasctipt:$.loading.show();">
                            <i class="icon-film"></i>
                            <span>媒体管理</span>
                        </a>
                </li>
                <li class="sub-menu">
                    <!-- 一级栏目展示-->
                        <a href="<?php echo $this->createUrl("game/admin"); ?>"
                           class="" onclick="javasctipt:$.loading.show();">
                            <i class="icon-bar-chart"></i>
                            <span>推荐比赛</span>
                        </a>
                </li>
                <li class="sub-menu">
                    <!-- 一级栏目展示-->
                        <a href="<?php echo $this->createUrl("article/admin"); ?>"
                           class="" onclick="javasctipt:$.loading.show();">
                            <i class="icon-list-alt"></i>
                            <span>文章管理</span>
                        </a>
                </li>
                <li class="sub-menu">
                    <!-- 一级栏目展示-->
                        <a href="<?php echo $this->createUrl("order/admin"); ?>"
                           class="" onclick="javasctipt:$.loading.show();">
                            <i class="icon-list"></i>
                            <span>交易记录</span>
                        </a>
                </li>

                <li class="sub-menu">
                    <!-- 一级栏目展示-->
                        <a href="<?php echo $this->createUrl("paylog/admin"); ?>"
                           class="" onclick="javasctipt:$.loading.show();">
                            <i class="icon-yen"></i>
                            <span>充值记录</span>
                        </a>
                </li>
            <?php }else{?>
                  <li class="sub-menu">
                    <!-- 一级栏目展示-->
                        <a href="<?php echo $this->createUrl("game/admin"); ?>"
                           class="" onclick="javasctipt:$.loading.show();">
                            <i class="icon-exchange"></i>
                            <span>推荐比赛</span>
                        </a>
                </li>
            <?php } } ?>
                <li class="sub-menu">
                    <!-- 一级栏目展示-->
                        <a href="<?php echo $this->createUrl("site/logout"); ?>"
                           class="" onclick="javasctipt:$.loading.show();">
                            <i class="icon-signout"></i>
                            <span>退出</span>
                        </a>
                </li>

        </ul>
    </div>
</aside>
<!--sidebar end-->